/**
 * 
 */
package matrix;

import java.util.ArrayList;

import barrier.Barrier;

/**
 * @author Yoni Seroussi
 * @author Roei Raviv
 *
 */
public class MatricesMultiplierWithBarrier extends MatricesMultiplier
    implements Barrier {

    private Barrier _barrier;

    /**
     * @param matricesList
     * @param order
     * @param barrier
     */
    public MatricesMultiplierWithBarrier(ArrayList<double[][]> matricesList,
            int order, Barrier barrier) {
        super(matricesList, order);
        _barrier = barrier;
    }

    /* (non-Javadoc)
     * @see barrier.Barrier#await()
     */
    @Override
    public void await() {
        _barrier.await();
    }
    
    
}
